﻿using System;
namespace UI.ModAccount
{
    public partial class ModAccount_AccountSeaForIn : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            string strSearchWord = txtSearchWord.Text.Trim();
            string strSearchSQL = "SELECT AccountID, Name, Account, RoleName,  Memo FROM JimView_Account WHERE (Name like '%" + strSearchWord + "%' OR Account like '%" + strSearchWord + "%') AND (State = 'Y') ORDER BY InputTime";
            sdsAccount.SelectCommand = strSearchSQL;
            gvAccount.DataSourceID = sdsAccount.ID;
        }
    }
}
